/*
 * This file is Copyright 2002-2006 Loyola University Chicago,
 * Department of Computer Science and the Emerging Technologies Laboratory.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License via
 *    http://www.apache.org/licenses/LICENSE-2.0.
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.citep.db.hibernate;

import java.util.Date;
import java.util.Set;
import java.util.HashSet;
import com.citep.business.*;

public class TransactionDAO implements Transaction {
	private int id;
	private User user;
	private Date systemTime;
	private Date transactionTime;
	private String memo;
	private Date lastModified;
	
	private Set<Entry> entries = new HashSet<Entry>();// = new ArrayList<Entry>();

	public TransactionDAO() {
		systemTime = new Date();
	}
	
	/**
	 * @return Returns the entries.
	 */
	public Set<Entry> getEntries() {
		return entries;
	}
	
	/**
	 * @param entries The entries to set.
	 */
	public void setEntries(Set<Entry> entries) {
		this.entries = entries;
	}
	
	/**
	 * @return Returns the memo.
	 */
	public String getMemo() {
		return memo;
	}
	/**
	 * @param memo The memo to set.
	 */
	public void setMemo(String memo) {
		this.memo = memo;
	}
	/**
	 * @return Returns the systemTime.
	 */
	public Date getSystemTime() {
		return systemTime;
	}
	/**
	 * @param systemTime The systemTime to set.
	 */
	public void setSystemTime(Date systemTime) {
		this.systemTime = systemTime;
	}
	/**
	 * @return Returns the transactionTime.
	 */
	public Date getTransactionTime() {
		return transactionTime;
	}
	/**
	 * @param transactionTime The transactionTime to set.
	 */
	public void setTransactionTime(Date transactionTime) {
		this.transactionTime = transactionTime;
	}
	/**
	 * @return Returns the user.
	 */
	public User getUser() {
		return user;
	}
	/**
	 * @param user The user to set.
	 */
	public void setUser(User user) {
		this.user = user;
	}
	/**
	 * @return Returns the id.
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id The id to set.
	 */
	public void setId(int id) {
		this.id = id;
	}

	public Date getLastModified() {
		return lastModified;
	}

	public void setLastModified(Date lastModified) {
		this.lastModified = lastModified;
	}
}
